package com.eos.control.action.activity;

import com.eos.business.service.SysActivityBusinessService;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.SysActivtySon;

public class EditSonActivityAction extends AbstractBaseAction {
	private static final long serialVersionUID = 7464999837195523128L;
	private String sonActivityId;
	private SysActivtySon sonActivity;

	public SysActivtySon getSonActivity() {
		return sonActivity;
	}

	public void setSonActivityId(String sonActivityId) {
		this.sonActivityId = sonActivityId;
	}

	@Override
	public String execute() {
		try {
			int sid = Integer.parseInt(sonActivityId.split("_")[0]);
			SysActivityBusinessService sabs = new SysActivityBusinessService();
			sonActivity = sabs.getSonActivityPrimaryKey(sid);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
